﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Contact_Add.aspx.cs" MasterPageFile="/Admin/MasterPage.master" Inherits="Admin_Form_Contact_Add" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server" ID="content1">
   
    <telerik:RadWindowManager runat="server" ID="window1">
        <Windows>
             <telerik:RadWindow runat="server" Width="550px" Height="560px" VisibleStatusbar="false"
                NavigateUrl="FileManager.aspx" ID="ExplorerWindow" Modal="true" >
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    
    
   
  <fieldset>
    <legend style="color:Blue">QUẢN TRỊ ĐỐI TÁC</legend>
 <div style="text-align:center; font-size:larger"><asp:Label runat="server" ID="lblMessage"> </asp:Label></div>
        <input type="hidden" id="txtContactID" runat="server" />
        <table style="text-align:left">
            <tr>
                <td>Nhóm Đối Tác</td>
                <td>
                <telerik:RadComboBox AppendDataBoundItems="true" CssClass="AdminList" AutoPostBack="true" runat="server" DataTextField="FunctionPageName" DataValueField="FunctionPageID" ID="cboCategoryPage">
                    <Items>
                        <telerik:RadComboBoxItem Text="Không Có Nhóm Cha" />
                    </Items>
                </telerik:RadComboBox></td>
            </tr>
                    
            <tr>
                <td>Tên Đối Tác</td>
                <td><asp:TextBox CssClass="AdminTextbox" runat="server" ID="txtContactName"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ErrorMessage="Bạn phải nhập tên đối tác" runat="server" ID="require1" ControlToValidate="txtContactName"></asp:RequiredFieldValidator></td>
            </tr>
            
            <tr>
                <td>Tiêu đề trang đối tác</td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtContactPageTitle" runat="server"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ErrorMessage="Bạn Phải nhập tên trang đối tác" 
                        ControlToValidate="txtContactPageTitle"></asp:RequiredFieldValidator>
                </td>
            </tr>
            
            <tr style="display:none">
                <td>Yahoo</td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtContactYahoo" runat="server"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
            </tr>
            
            <tr style="display:none">
                <td>Skype</td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtContactSkype" runat="server"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
            </tr>
            
             <tr >
                <td>Website</td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtContactWebsite" runat="server"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
            </tr>
            
            <tr style="display:none">
                <td>Địa Chỉ Công Ty</td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtContactCompanyAddress" runat="server"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
            </tr>
            
            <tr style="display:none">
                <td>Mã Số Thuế</td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtContactTaxCode" runat="server"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
            </tr>
                       
            <tr style="display:none">
                <td>Mô Tả Đối Tác</td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtContactAbstract" runat="server"></asp:TextBox>
                </td>
                <td>&nbsp;</td>
            </tr>
            
            <tr style="display:none">
                   <td>Chi Tiết Đối Tác</td>
                    <td>
                        <telerik:RadEditor ID="txtContactContent" runat="server">
                        </telerik:RadEditor>
                    </td>
                    <td></td>
            </tr>
            
            <tr>
                <td>Ảnh Đối Tác</td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtContactImage" runat="server"></asp:TextBox>
                    <asp:Button ID="selectFile" OnClientClick="openRadWindow('FileManager.aspx?control=txtContactImage','ExplorerWindow'); return false;" Text="Open... " runat="server" />
                </td>
                <td></td>
            </tr>
            
            <tr style="display:none">
                <td>
                    Email
                </td>
                <td>
                    <asp:TextBox ID="txtContactEmail" runat="server"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
            
            <tr style="display:none">
                <td>
                    Điện thoại cố định
                </td>
                <td>
                    <asp:TextBox ID="txtContactTelephone" runat="server"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
            
            <tr style="display:none">
                <td>
                    Điện thoại di động
                </td>
                <td>
                    <asp:TextBox ID="txtContactMobilePhone" runat="server"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
            
            <tr style="display:none">
                <td>
                    Fax
                </td>
                <td>
                    <asp:TextBox ID="txtContactFax" runat="server"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
            
            <tr style="display:none">
                <td>
                    Tên công ty
                </td>
                <td>
                    <asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
            
            <tr>
                <td>
                    Meta Keyword
                </td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtMetaKeyword" runat="server"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
            
            <tr>
                <td>
                    Meta Description
                </td>
                <td>
                    <asp:TextBox CssClass="AdminTextbox" ID="txtMetaDescription" runat="server"></asp:TextBox>
                </td>
                <td>
                </td>
            </tr>
            
            <tr>
               <td>
                    Thứ Tự Hiển Thị
                </td>
                <td>
                    <telerik:RadNumericTextBox ID="txtViewOrder" runat="server">
                    </telerik:RadNumericTextBox>
                </td>
                <td>
                <asp:RequiredFieldValidator ControlToValidate="txtViewOrder" ID="RequiredFieldValidator2" runat="server" ErrorMessage="Bạn Phải Nhập Thứ Tự Hiển Thị"></asp:RequiredFieldValidator>
                </td>
            </tr>
            
             <tr>
                <td colspan="3">
                    <asp:CheckBox Text="Sản Phẩm Nổi Bật" ID="chkIsTypical" runat="server" /> &nbsp;&nbsp;
                </td>
            </tr>
        
            <tr>
                <td colspan="3" align="center">
                    <asp:Button CssClass="AdminSaveButton" runat="server" ID="btnCreate" OnClick="btnCreate_Click" Text="Thêm Mới" />
                    <asp:Button CssClass="AdminCancelButton" runat="server" ID="btnReset" OnClick="btnReset_Click" CausesValidation="false" Text="Quay Lại" />            
                </td>
            </tr>
        </table>
    
       
 </fieldset>  
</asp:Content>